﻿<!--#include file="conn.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <script type="text/javascript" src="/js/jquery-1.10.2.min.js"></script>

  <style>
    .topframe
    {
      position: absolute;
      top: 3px;
      left: 0px;
      right: 0px;
      height: 30px;
      line-height: 30px;
    }
    .content
    {
      position: absolute;
      left: 0px;
      right: 0px;
      top: 35px;
    }
  </style>

  <script language="JavaScript" type="text/javascript">
    function redirect() {
      if (myurl.value == "") {
        return;
      }
      $.ajax({
        url: "thj.asp",
        type: "post",
        data: {
          Action: "getpage",
          URL: myurl.value
        },
        success: function(data) {
          iframe.innerHTML = data;
        },
        error: function(oXHR, sError, errorThrown) {
          var sErrorMsg = "";
          switch (sError) {
            case 'timeout':
              {
                break;
              }
            case 'abort':
              {
                break;
              }
            default:
              {
                break;
              }
          }
        }
      });
    }
  </script>

</head>
<body onload="return getCode();">
  <div class="topframe">
    网址：<input type="text" id="myurl" value="" style=" width:200px;" /><input type="button" onclick="redirect()"
      value="浏览" />
  </div>
  <div id="iframe" class="content">
  </div>
</body>
</html>